package com.example.service;

import com.example.dao.UsersMapper;
import com.example.pojo.Users;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LoginUser {

    @Resource
    UsersMapper usersMapper;

    public boolean login(String username,String password){

        Users user = usersMapper.login(new Users(username,password));

        if(user != null){
            return true;
        }
        return false;

    }

}
